/*
 * Copyright (c) 2025 CAX Conversion Project
 */
package com.comac.ins.isfd.domain.bo;


import com.comac.ins.common.core.validate.AddGroup;
import com.comac.ins.common.core.validate.EditGroup;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 修改零组件号对象
 *
 * @author hxloongs
 * @date 2024-08-19
 */
@Data
public class IsfdModelManagementUpdateImportPartBo {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 零件
     */
    @NotBlank(message = "零件不能为空", groups = {EditGroup.class})
    private String partName;

    /**
     * 零件编号
     */
    @NotBlank(message = "零件编号不能为空", groups = {EditGroup.class})
    private String partNumber;

    /**
     * 版本号
     */
    @NotBlank(message = "版本号不能为空", groups = {EditGroup.class})
    private String versionNumber;

    /**
     * 索引路径
     */
    @NotBlank(message = "索引路径不能为空", groups = {EditGroup.class})
    private String indexPath;

    /**
     * 机型索引文件
     */
    @NotBlank(message = "机型索引文件不能为空", groups = {AddGroup.class, EditGroup.class})
    private String modelIndex;

    /**
     * 部段索引文件
     */
    @NotBlank(message = "部段索引文件不能为空", groups = {AddGroup.class, EditGroup.class})
    private String sectionIndex;

    /**
     * 组件索引文件
     */
    @NotBlank(message = "组件索引文件不能为空", groups = {AddGroup.class, EditGroup.class})
    private String componentIndex;

    /**
     * 文件级别 ：MODEL("model", "机型"),SECTION("section", "部段"),COMPONENT("component", "组件");
     */
    @NotBlank(message = "文件级别（机型、部段、组件）不能为空", groups = {AddGroup.class, EditGroup.class})
    private String fileLevel;

    /**
     * 架次
     */
    private String sortie;
}
